<%@page import="java.awt.Window"%>
<%@ page import="ilikethat.*"%>
<%@ page import="java.sql.*"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>


<%
	String gameID = request.getParameter("gameID");
	System.out.println("HIER KOMMTS" + Select.getGameRating("games", "player2ID", gameID).equals(0));
	while(Select.getGameRating("games", "player2ID", gameID).equals(0)){
			
		try{
			System.out.println("Sleeper active");
			Thread.sleep(5000);	
		}
		catch(InterruptedException e){
			System.out.println("Thread sleep EXC" + e);
		}
	}
	
	out.print(1);
	
	
	%>